package com.jintoufs.service.divided;

import com.alibaba.fastjson.parser.AbstractJSONParser;
import com.jintoufs.dao.QueryFilters;
import com.jintoufs.domain.divided.Divided;
import org.cosmos.modules.web.msg.AjaxMsg;

import java.util.List;
import java.util.Map;

/**
 * Created by yangpeng on 2018/2/27.
 */
public interface DividedService {

    /**
     * 获取分销商分润详细
     * @param customerId 用户id
     * @return
     */
    List<Map> getDivided(String customerId);

    Divided saveDivided(Divided divided);


    List<Map<String,Object>> getByFilter(QueryFilters filters_);


    void doDivided(Object orderObj,String id,String type);

    public List<Map> getShareOrders(Map param);

    public AjaxMsg readOrder(String token, String ids,AjaxMsg ajaxMsg);

    public List<Map> getSharesByUser(String customerId);

}
